<% layout("/bbs/_layout.html"){ %>
<div class="pull-left -main">1234567890-
    <div class="-border">
    <% for(topic in topicPage.list!){ %>
        <div class="clearfix -topic" href="${BASE}/bbs/topic/${topic.id}">
            <div class="pull-left -topic-left">
                <a href="${BASE}/bbs/user/${topic.userId!}" title="${topic.user.username!}" target="_blank">
                    <img width="110px" height="110px" src="${topic.user.headImg!}">
                </a>
            </div>
            <div class="pull-left -topic-main">
                <div class="-topic-content">
                    <a href="${BASE}/bbs/topic/${topic.id}" title="${topic.content}" target="_blank">${topic.content}</a>
                </div>
                <div class="-topic-info">
                    <span><a href="${BASE}/bbs/topic/module/${topic.module.id}" class="btn btn-success" target="_blank" title="话题分类">${topic.module.name}</a></span>
                    <span><a href="${BASE}/bbs/user/${topic.userID!}" target="_blank" title="作者">${topic.user.username!}</a></span>
                    <span>${printTime(topic.createTime)}</span>
                </div>
            </div>
            <div class="pull-right -topic-right">
                <p title="浏览次数"><span class="badge badge-important">${topic.pv}</span></p>
                <p title="帖子个数"><span class="badge badge-warning">${topic.postCount}</span></p>
            </div>
        </div>
    <% }%>
    </div>
    <% include("/bbs/_paginate.html", {"currentPage":topicPage.pageNumber,"totalPage":topicPage.pageCount,"actionUrl":actionUrl!}) {}%>
</div>
<% include("/bbs/_sidebar.html"){} %>
<% } %>